// src/router/index.js
// import { createRouter, createWebHistory } from "vue-router";

 const routes = [
  {
    path: "/module",
    component: () => import("@apps/module1/src/pages/index.vue"),
    name: "module",
    meta: { title: "模块1" },
    children: [
      {
        path: "/module1",
        component: () => import("@apps/module1/src/pages/date.vue"),
        name: "module1",
        meta: { title: "模块2" },
      },
      {
        path: "/module3",
        component: () => import("@apps/module1/src/pages/index.vue"),
        name: "module3",
        meta: { title: "模块3" },
      },
    ]

  },
  {
    path: "/table",
    component: () => import("@apps/module1/src/pages/table.vue"),
    name: "table",
    meta: { title: "text" },
    children: [
      {
        path: "/table1",
        component: () => import("@apps/module1/src/pages/table1.vue"),
        name: "table1",
        meta: { title: "table1-text" },
      },
    ],

  },
];

// const router = createRouter({
//   history: createWebHistory(),
//   routes,
// });

export default routes;
